package com.chinasoftinc.facommon;

import ohos.aafwk.ability.Ability;
import ohos.aafwk.ability.AbilityLifecycleCallbacks;
import ohos.ace.ability.AceAbility;
import ohos.app.ElementsCallback;
import ohos.global.configuration.Configuration;
import ohos.utils.PacMap;

/**
 * @since 2022-06-15
 */
public class AbilityLifeCallbackAdapter implements AbilityLifecycleCallbacks, ElementsCallback {
    protected boolean isPageAbility(Ability ability) {
        return ability instanceof AceAbility;
    }
    @Override
    public void onAbilityStart(Ability ability) {

    }

    @Override
    public void onAbilityActive(Ability ability) {

    }

    @Override
    public void onAbilityInactive(Ability ability) {

    }

    @Override
    public void onAbilityForeground(Ability ability) {

    }

    @Override
    public void onAbilityBackground(Ability ability) {

    }

    @Override
    public void onAbilityStop(Ability ability) {

    }

    @Override
    public void onAbilitySaveState(PacMap pacMap) {

    }

    @Override
    public void onMemoryLevel(int i) {

    }

    @Override
    public void onConfigurationUpdated(Configuration configuration) {

    }
}
